package com.fsoft.core.dict.mapper;

import java.sql.SQLException;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.fsoft.core.common.base.mapper.BaseMapper;
import com.fsoft.core.dict.entity.SysDictItem;

/**
 * 字典配置项信息
 * @author licheng
 * @date 2021-04-09
 * @email it.fish2010@foxmail.com
 * @copyright 上海哲凌科技有限公司 ©2015-2021
 */
@Repository
public interface SysDictItemMapper extends BaseMapper<SysDictItem> {
	/**
	 * 根据字典ID删除配置项
	 * @author licheng
	 * @date 2021-04-09
	 * @param dictId
	 * @return
	 * @throws SQLException
	 */
	int deleteByDict(String dictId) throws SQLException;

	/***
	 * 根据字典ID删除配置项（批量）
	 * @author licheng
	 * @date 2021-04-09
	 * @param list
	 * @return
	 * @throws SQLException
	 */
	int deleteBatchByDict(List<String> list) throws SQLException;

}
